package com.bianmin.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bianmin.Model.SignInRecords;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SignInRecordsMapper extends BaseMapper<SignInRecords> {

    @Select("select sign_in_date from sign_in_records where user_id = #{userId} order by id desc limit 1")
    String selectUserLastSignInTime(Integer userId);

}
